class Shop < ActiveRecord::Base
	has_many :shopping_records
  
  validates_presence_of :name, :message => "请输入商店名称"
  validates_uniqueness_of :name, :message => "已经存在同名商店"
end
